import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { AppContainer } from 'react-hot-loader';
import FastClick from 'fastclick';
import {Provider} from 'react-redux'
import Route from './router'


FastClick.attach(document.body)

const render = Component => {
    ReactDOM.render(

            <AppContainer>
                <Component/>
            </AppContainer>
     ,
        document.getElementById('root')
    )
}

render(Route)

serviceWorker.unregister();

/*ReactDOM.render(
    <AppContainer>
            <App />
    </AppContainer>,
  document.getElementById('root')
);*/






